# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=libewf
pkgver=20230212
pkgrel=1
pkgdesc="Library to support the Expert Witness Compression Format"
url="https://libewf.sourceforge.net/"
arch="all"
license="LGPL-2.0-or-later"
depends_dev="zlib-dev bzip2-dev openssl-dev>3"
makedepends="$depends_dev fuse-dev"
subpackages="$pkgname-dev libewf-libs $pkgname-doc"
source="https://github.com/libyal/libewf/releases/download/$pkgver/libewf-experimental-$pkgver.tar.gz"

build() {
	# fix build on gcc6
	# export CFLAGS="$CFLAGS -std=gnu89"
	./configure \
		--prefix=/usr \
		--mandir=/usr/share/man \
		--disable-nls \
		--disable-static
	make
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
a362c394e694d17bf5e0a30df5442c7f372b5db14ffcd898a9ea20b983e74fb219309657206fca97df1a127bef6fe6e556320191682e1c25ea7bbc1fb349ff2a  libewf-experimental-20230212.tar.gz
"
